package com.scs.application.enums;

import lombok.Getter;

/**
 * @description: 基础数据医院配置业务类型
 */
@Getter
public enum BasePrintBusType {
    DELIVERY("delivery","发货单"),
    INVOICE("invoice","开票单"),
    INVOICEDELIVERY("invoice_delivery","开票送货单"),
    WXORDERSHOWDEPT("wx_order_show_dept","微信订单及通知是否显示科室"),
    DELIVERYCODE("delivery_code","发货单号是否根据采购单号拼接次数");

    private String value;

    private String name;

    BasePrintBusType(String value, String name) {
        this.value = value;
        this.name = name;
    }

    public static BasePrintBusType of(String value) {
        switch (value){
            case "delivery":
                return BasePrintBusType.DELIVERY;
            case "invoice":
                return BasePrintBusType.INVOICE;
            case "wx_order_show_dept":
                return BasePrintBusType.WXORDERSHOWDEPT;
            case "delivery_code":
                return BasePrintBusType.DELIVERYCODE;
            default:
                return BasePrintBusType.DELIVERY;
        }
    }


}

